package cn.aitrox.ry.service.anno.task;

import cn.aitrox.ry.service.anno.dao.TaskDao;
import cn.aitrox.ry.util.LogUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class BigImageFileReleaseTask {

    private static final Logger LOG = LoggerFactory.getLogger(BigImageFileReleaseTask.class);

    @Autowired
    private TaskDao taskDao;

    /**
     * 每天凌晨4点执行
     */
    @Scheduled(cron = "0 0 4 * * ?")
    public void execute() {
        LOG.info(LogUtil.gen("BigImageFileReleaseTask execute begin"));
        try {

        } finally {
            LOG.info(LogUtil.gen("BigImageFileReleaseTask execute end"));
        }
    }

}
